using System;
using System.Collections.Generic;
using System.Text;

namespace MspEmulator
{
    class sendTurboPumpStatus: ISend
    {
        private byte[] relays;
        #region ISend Members

        public void Send()
        {
            relays = Device.TurboPump.relaysState();
            Serial.Send(Utility.buildPack(Utility.collectData((byte)Utility.functCode.GetTurboPumpStatus, Device.TurboPump.Speed, Device.TurboPump.Current, Device.TurboPump.pwm, Device.TurboPump.PumpTemperature, Device.TurboPump.DriveTemperature, Device.TurboPump.OperationTime, relays[0], relays[1], relays[2])));
        }

        #endregion
    }
}
